<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			#chart{
				width: 500px;
				height: 400px;
				border: 1px soli red;
			}
		</style>
		<script src="echarts.min.js"></script>
			<script>
			window.onload = function(){
				  // 基于准备好的dom，初始化echarts实例
        var myChart = echarts.init(document.getElementById('chart'));

        // 指定图表的配置项和数据
        var option = {
            title: {
                text: '电量历史',
                 subtext: '纯属虚构'
            },
            tooltip: {
            	trigger: 'axis'
            },
            xAxis: {
                data: ["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子","裤子","高跟鞋","袜子"]
            },
            yAxis: {},
            series: [{
                name: '电量（度）',
                type: 'line',
                data: [5, 20, 36, 10, 10, 20, 10, 10, 20]
            }]
        };

        // 使用刚指定的配置项和数据显示图表。
        myChart.setOption(option);
			}
		</script>
	</head>
	<body>
		<div id="chart">
			
		</div>
	</body>
</html>
